var Imp = JavaImporter(
                    Packages.java.lang,
                    Packages.java.io,
                    Packages.com.hz.actor,
                    Packages.com.hz.main,
                    Packages.com.hz.map,
                    Packages.com.hz.ui,
                    Packages.com.hz.core,
                    Packages.com.hz.common,
                    Packages.com.hz.net,
                    Packages.com.google.gson,
                    Packages.java.util.concurrent
                            );

with(Imp){
    // cmd.run(function(){
    //     cmd.logout();
        
    // });
    // cmd.delay(3000);
    //  cmd.run(function(){
    //     cmd.login("测试");
    // });
    
}


cmd.closeAllUI();
// cmd.log("---------------------");
cmd.init({
    attrConfig:[10,0,0,0,0]
});

try {
    

// cmd.acceptMission("世界村村长","初入世界 1");
// cmd.finishMission("初入世界 1");
// cmd.acceptMission("云裳","初入世界 2");
// cmd.finishMission("初入世界 2");
// cmd.acceptMission("云裳","初入世界 3");
// cmd.finishMission("初入世界 3");
// cmd.acceptMission("东海","初入世界 4");
// cmd.killMonster([{name:"哈士奇", count:1}]);
// cmd.finishMission("初入世界 4");
// cmd.acceptMission("东海","初入世界 5");
// cmd.finishMission("初入世界 5");
// cmd.acceptMission("小悦","初入世界 6");
// cmd.killMonster([{name:"小偷", count:1}]);
// cmd.finishMission("初入世界 6");
// cmd.acceptMission("小悦","初入世界 7");
// cmd.finishMission("初入世界 7");
// cmd.acceptMission("悲剧哥","初入世界 8");
// cmd.finishMission("初入世界 8");
// cmd.acceptMission("井","井水");
// cmd.finishMission("井水");
// cmd.acceptMission("世界村村长","初入世界 9");
// cmd.finishMission("初入世界 9");
// cmd.acceptMission("轩姐","进入世界");
// cmd.finishMission("进入世界");
// cmd.jumpMap("迎客殿");
// cmd.acceptMission("迎客道人","蜀山的邀请函");
// cmd.finishMission("蜀山的邀请函");
// cmd.acceptMission("迎客道人","领路人【紫嫣】");
// cmd.finishMission("领路人【紫嫣】");
// cmd.acceptMission("紫嫣","小心后面！");
// cmd.killMonster([{name:"偷袭的箭手", count:4}]);
// cmd.finishMission("小心后面！");
// cmd.acceptMission("紫嫣","事情不简单");
// cmd.finishMission("事情不简单");
// cmd.acceptMission("紫嫣","帮助剑客韩松");
// cmd.killMonster([{name:"围攻的教众", count:8}]);
// cmd.finishMission("帮助剑客韩松");
// cmd.acceptMission("紫嫣","前往迎客殿");
// cmd.finishMission("前往迎客殿");
// cmd.acceptMission("紫嫣","阻止亥起进攻大殿");
// cmd.finishMission("阻止亥起进攻大殿");
// cmd.acceptMission("打败人王亥起","单挑的邀请");
// cmd.killMonster([{name:"亥起", count:1}]);
// cmd.finishMission("单挑的邀请");
// cmd.acceptMission("打败人王亥起","赢得单挑");
// cmd.finishMission("赢得单挑");

// cmd.acceptMission("紫嫣","清除余党");
// cmd.finishMission("清除余党");
// cmd.acceptMission("剑客严人英","帮助剑客严人英");
// cmd.killMonster([{name:"魔教枪兵", count:10}]);

// cmd.finishMission("帮助剑客严人英");
// cmd.acceptMission("剑客严人英","帮助剑客李文衍");
// cmd.killMonster([{name:"魔教刀兵", count:10}]);
// cmd.finishMission("帮助剑客李文衍");
// cmd.acceptMission("紫嫣","前往神剑广场");
// cmd.finishMission("前往神剑广场");
// cmd.acceptMission("紫嫣","前往神剑广场");
// cmd.jumpMap("神剑广场");
// cmd.finishMission("前往神剑广场");
// cmd.acceptMission("紫嫣","修真者梦龙");
// cmd.finishMission("修真者梦龙");
// cmd.acceptMission("修真者梦龙","被封锁的桥");
// cmd.killMonster([{name:"魔教箭手",count:10},{name:"魔教修真者",count:10}]);
// cmd.finishMission("被封锁的桥");


// cmd.acceptMission("天王屠夫","击败魔教屠夫");
// cmd.killMonster([{name:"魔教屠夫", count:1}]);
// cmd.finishMission("击败魔教屠夫");
// cmd.acceptMission("天王屠夫","桥已打通");
// cmd.finishMission("桥已打通");
// cmd.acceptMission("修真者梦龙","前往神剑广场");
// cmd.finishMission("前往神剑广场");


// cmd.acceptMission("修真者梦龙","清扫剑阵周围");
// cmd.killMonster([{name:"魔教刀手", count:15}]);
// cmd.finishMission("清扫剑阵周围");


// cmd.acceptMission("修真者梦龙","启动天雷大阵");
// cmd.finishMission("启动天雷大阵");
// cmd.acceptMission("神剑核心","谁又偷袭？！");
// cmd.finishMission("谁又偷袭？！");
// cmd.acceptMission("魔教三雄","击败魔教三雄");
// cmd.killMonster([{name:"魔教三雄", count:3}]);
// cmd.finishMission("击败魔教三雄");
// cmd.acceptMission("魔教三雄","果然厉害");
// cmd.finishMission("果然厉害");
// cmd.acceptMission("梦龙","前往殿前广场");
// cmd.finishMission("前往殿前广场");


// cmd.acceptMission("修真者梦龙","清理刀客");
// cmd.killMonster([{name:"红发刀客",count:10},{name:"白发刀客",count:10},{name:"志天笑",count:1}]);
// cmd.finishMission("清理刀客");
// cmd.acceptMission("修真者梦龙","前往蜀山后山");
// cmd.jumpMap("蜀山后山");
// cmd.finishMission("前往蜀山后山");
// cmd.acceptMission("修真者梦龙","消灭斑纹豹");
// cmd.killMonster([{name:"斑纹豹", count:20}]);
// cmd.finishMission("消灭斑纹豹");
// cmd.acceptMission("修真者梦龙","继续前进");
// cmd.finishMission("继续前进");
// cmd.acceptMission("修真者梦龙","帮助严峰");
// cmd.killMonster([{name:"魔教恶僧",count:10},{name:"魔教刺客",count:10}]);


// cmd.finishMission("帮助严峰");
// cmd.acceptMission("严峰","英雄救美");
// cmd.killMonster([{name:"魔教恶僧",count:10},{name:"魔教刺客",count:10}]);
// cmd.finishMission("英雄救美");
// cmd.acceptMission("丽莎","视察山道");

// cmd.finishMission("视察山道");
// cmd.acceptMission("修真者梦龙","狂风挡路");
// cmd.finishMission("狂风挡路");
// cmd.acceptMission("白日死","击败白日死");
// cmd.killMonster([{name:"白日死", count:1}]);
// cmd.finishMission("击败白日死");
// cmd.acceptMission("白日死","怪风已除");
// cmd.finishMission("怪风已除");
// cmd.acceptMission("修真者梦龙","前往镇妖塔");



// cmd.jumpMap("镇妖塔");
// cmd.finishMission("前往镇妖塔");
// cmd.acceptMission("修真者梦龙","助阵");
// cmd.finishMission("助阵");
// cmd.acceptMission("玄真道人","清除魔教刀客");
// cmd.killMonster([{name:"魔教刀客", count:20}]);
// cmd.finishMission("清除魔教刀客");
// cmd.acceptMission("玄真道人","清除剑客");
// cmd.killMonster([{name:"魔教剑客", count:20}]);
// cmd.finishMission("清除剑客");

// cmd.acceptMission("玄真道人","步步紧逼");
// cmd.acceptMission("吴用","击败魔天王吴用");
// cmd.acceptMission("魔天王吴星","击败魔天王吴星");

// cmd.finishMission("击败魔天王吴用");
// cmd.finishMission("击败魔天王吴星");
// cmd.finishMission("步步紧逼","百炼银龙剑");

// cmd.acceptMission("玄真道人", "击败魔教教主");
// cmd.finishMission("击败魔教教主");

// cmd.acceptMission("教主任独行","强者的证明");
// cmd.finishMission("强者的证明");
// cmd.acceptMission("教主任独行","神龙降临");
// cmd.finishMission("神龙降临");
// cmd.acceptMission("神龙炎帝","还是来迟了");
// cmd.finishMission("还是来迟了");
// cmd.acceptMission("神龙炎帝","前往起源之地");
// cmd.jumpMap("起源之地");
// cmd.finishMission("前往起源之地");
// cmd.acceptMission("长老","英雄的诞生!");
// cmd.finishMission("英雄的诞生!");
// cmd.acceptMission("长老","获得新的城市");
// cmd.finishMission("获得新的城市");
// cmd.toCity();//进入自己的城市

//===============================日常开始===============================
// cmd.acceptMission("日常任务列表","精灵之森林初阶段");
// cmd.jumpMap("精灵之森");
// cmd.acceptMission("佣兵队长-浩克","扫清野狼");
// cmd.acceptMission("女仆","贪吃的野狼");
// cmd.killMonsterWithItem("野狼","被咬过的肉",10);
// cmd.finishMission("扫清野狼");
// cmd.finishMission("贪吃的野狼");
// cmd.acceptMission("佣兵队长-浩克","动静");
// cmd.finishMission("动静");
// cmd.acceptMission("佣兵队长-浩克","解救商队");
// cmd.killMonster([{name:"拦路山贼",count:9}]);
// cmd.finishMission("解救商队");
// cmd.acceptMission("商人","山贼的据点");
// cmd.finishMission("山贼的据点");

// cmd.acceptMission("佣兵队长-浩克","捣毁山贼的据点");
// cmd.finishMission("捣毁山贼的据点");


// cmd.acceptMission("佣兵队长-浩克","冲锋");
// cmd.finishMission("冲锋");

// cmd.acceptMission("佣兵队长-浩克","爆炸");
// cmd.finishMission("爆炸");


// cmd.acceptMission("佣兵队长-浩克","伤亡惨重");
// cmd.finishMission("伤亡惨重");

// cmd.acceptMission("山贼头领","山贼的袭击");
// cmd.killMonster([{name:"山贼头领",count:1}]);//开启倍攻
// cmd.finishMission("山贼的袭击");

// cmd.acceptMission("山贼头领","狡猾的山贼");
// cmd.finishMission("狡猾的山贼");

// cmd.acceptMission("佣兵队长-浩克","呼叫伙伴");
// cmd.finishMission("呼叫伙伴");

// cmd.acceptMission("信号弹","点燃信号弹");
// cmd.finishMission("点燃信号弹");

// cmd.acceptMission("佣兵队长-浩克","扫清障碍");
// cmd.killMonster([{name:"大刀强",count:14},{name:"黑胡子山贼",count:14},{name:"精英大刀强",count:1}]);
// cmd.finishMission("扫清障碍");

//===============================日常结束===============================

//===============================战士循环刷图开始===============================
// cmd.repairEquip();
// while(cmd.player().getLevel() < 22){
    // cmd.acceptMission("邪灵教主","击败邪灵教主");
    // cmd.abandonMission("击败邪灵教主");
// }


//===============================战士循环刷图结束===============================


// cmd.gameMap();
//cmd.killMonster([{name:"野狼",count:6}]);

// cmd.killMonster([{name:"野狼",count:80}]);
// cmd.delay(1000*60*60);
// cmd.acceptMission("丛林守卫","消灭腐化的生物");
//cmd.test();
//cmd.killMonster([{name:"骷髅兵", count:12}]);
//
//while(cmd.player().getLevel() < 63){
//    cmd.acceptMission("天玄剑客","破敌");
//    cmd.npcBattle("妖尊者","消灭妖尊者");
//    cmd.abandonMission("破敌");  
//}
//



cmd.alert("完毕");
// java.lang.Thread.sleep(java.lang.Integer.MAX_VALUE);
}
catch(err) {
    cmd.alert("错误");
}